#include "qpointchooser.h"
#include "qpointchooserplugin.h"

#include <QtCore/QtPlugin>

QPointChooserPlugin::QPointChooserPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void QPointChooserPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;
    
    // Add extension registrations, etc. here
    
    m_initialized = true;
}

bool QPointChooserPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *QPointChooserPlugin::createWidget(QWidget *parent)
{
    return new QPointChooser(parent);
}

QString QPointChooserPlugin::name() const
{
    return QLatin1String("QPointChooser");
}

QString QPointChooserPlugin::group() const
{
    return QLatin1String("Els meus widgets");
}

QIcon QPointChooserPlugin::icon() const
{
    return QIcon();
}

QString QPointChooserPlugin::toolTip() const
{
    return QLatin1String("");
}

QString QPointChooserPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool QPointChooserPlugin::isContainer() const
{
    return false;
}

QString QPointChooserPlugin::domXml() const
{
    return QLatin1String("<widget class=\"QPointChooser\" name=\"qPointChooser\">\n</widget>\n");
}

QString QPointChooserPlugin::includeFile() const
{
    return QLatin1String("qpointchooser.h");
}

Q_EXPORT_PLUGIN2(qpointchooserplugin, QPointChooserPlugin)
